<?php

namespace App\Admin\Controllers;


use Encore\Admin\Layout\Content;
use App\Http\Controllers\Controller;
use Encore\Admin\Widgets\InfoBox;

class InfoBoxController extends Controller
{
    public function infoBox(Content $content)
    {
        $content->row(function ($row) {
            $row->column(3, new InfoBox('充啊', 'cc-visa', 'blue', 'card', '充值卡'));
            $row->column(3, new InfoBox('优啊', 'cc-discover', 'green', 'coupon', '优惠券'));
            $row->column(3, new InfoBox('减啊', 'money', 'yellow', 'cheapen', '单单立减'));
            $row->column(3, new InfoBox('扣啊', 'yen', 'purple', 'kickback', '商家回扣'));
        });
        return $content;
    }
}
